package ClassesFieldsMethods;

public class PersonDemo {

	public static void main(String[] args) 
	{
		//person kato ime e referencia kam obekt
		Person p = new Person();//new vinagi sazdava nov obekt v pametta
		Person p1 = new Person();
		

		
		p.name = "Ivan";
		p.age = 25;
		p.number = "8612025281";
		p.sex = 'M';
		p.weight = 76.5;
		System.out.printf("The name of the first person is %s: %d years old, personal number: %s, his sex is %s, his weight is %.2f!", p.name, p.age, p.number, p.sex, p.weight);
		System.out.println();
		

		p1.name = "Maria";
		p1.age = 21;
		p1.number = "8612025281";
		p1.sex = 'F';
		p1.weight = 58.00;
		System.out.println(p1.name);
		
		p.eat(10);
		p1.walk();
		p1.drinkWater(5);
		
		System.out.println("Ivan's health is " + p.health);
		System.out.println("Ivan's hunger = " + p.starvationStatus);
		System.out.println("Maria's health is " + p1.health);
		System.out.println("Maria's hunger = " + p1.starvationStatus);
	}

}
